package com.qzy.demo.service.impl;

import com.qzy.demo.mapper.OrderMapper;
import com.qzy.demo.pojo.OrderPojo;
import com.qzy.demo.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderMapper orderMapper;
    @Override
    public void delOrders(String orderNo) {
        orderMapper.delOrder(orderNo);
    }

    @Override
    public List<OrderPojo> queryOrders() {
        return orderMapper.queryOrders();
    }

    @Override
    public OrderPojo queryOrderByNo(String orderNo) {
        return orderMapper.queryOrderByNo(orderNo);
    }

    @Override
    public void updOrder(OrderPojo order) {
        orderMapper.updOrder(order);
    }

    @Override
    public void addOrder(OrderPojo order) {
        orderMapper.addOrder(order);
    }
}
